Skip to content

Conversation

@jrmccluskey
Copy link
Contributor

@jrmccluskey jrmccluskey commented May 8, 2025

The binary issues for psycopg2 version 2.9.10 (reported in #1737) have not been fixed (omitting correctly built python 3.9 wheels for arm64 macos machines) but this specifically forces 3.9 macos builds to use older versions of the package. This allows the later version for every other currently supported environment and helps unblock Python 3.13 support.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions github-actions bot added the python label May 8, 2025
@jrmccluskey jrmccluskey marked this pull request as ready for review May 8, 2025 19:21
@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2025

Assigning reviewers:

R: @tvalentyn for label python.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

'scikit-learn>=0.20.0',
'setuptools',
'sqlalchemy>=1.3,<3.0',
'psycopg2-binary>=2.8.5,<3.0.0,!=2.9.10',
Copy link
Contributor

@tvalentyn tvalentyn May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we instead have two constraints here:

              'psycopg2-binary>=2.8.5,<2.9.10; python_version <= "3.9"',
              'psycopg2-binary>=2.8.5,<3.0; python_version >= "3.10"'

This way, it will be easier to maintain by dependabot and eventually easier to spot that this logic can be cleaned up when Python 3.9 is deprecated.

Adding an OS constraint if desired should be possible too via:

sys_platform != "darwin" 
sys_platform == "darwin" 

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do the targeted constraint in-line like that (3.9 + darwin excluding 2.9.10 specifically) and it was quite messy. I'm okay to just split 3.9/3.10 if you'd prefer to avoid the more programatic setup

'tensorflow': [
'tensorflow>=2.12rc1,<2.13'
],
'torch': ['torch<=1.13.0,<=2.0.0'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should use strict upper bound, so <2.1.0 or <2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was just a formatting change, the torch bound has been in that form

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrmccluskey jrmccluskey merged commit ee72f5e into apache:master May 14, 2025
95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants